/*
 * drv_button.h
 *
 *  Created on: Oct 9, 2013
 *      Author: Omar Sevilla
 */

#ifndef DRV_BUTTON_H_
#define DRV_BUTTON_H_

#define BUTTON1_SHIFT	(1 << 8)	//Button in PTB8
#define BUTTON1			(((GPIOB_PDIR) & (1 << 8)) >> 8)

#define BUTTON2_SHIFT	(1 << 9)	//Button in PTB9
#define BUTTON2			(((GPIOB_PDIR) & (1 << 9)) >> 9)

void init_button(void);
void app_button1(void);
void app_button2(void);

#endif /* DRV_BUTTON_H_ */
